package com.design.pattern.structural.flyweight;

/**
 * description
 *
 * @author RenQiQiang 2019/03/12 9:49
 */
public class Test {
    private static final String departments[] = {"RD","QA","PM","BD"};

    public static void main(String[] args) {
/*        for (int i=0;i<10;i++){
            String department = departments[(int) (Math.random()*departments.length)];
            Manager manager = (Manager) EmployeeFactory.getManager(department);
            manager.report();
        }*/
        Integer a = Integer.valueOf(100);
        Integer b = 100;
        System.out.println(a == b);

        Integer c = Integer.valueOf(1000);
        Integer d = 1000;
        System.out.println(c == d);
    }
}
